import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

import App from './App.vue'
import router from './router'

//适配
import 'lib-flexible'
import './Styles/reset.css'
import './Styles/main.css'

//vant所有样式
import 'vant/es/toast/style';
import 'vant/lib/index.css'
// import { Button } from 'vant'

const app = createApp(App)

//全局组件
import Myhead from '@/Components/HeaderView.vue'
app.component('Myhead', Myhead)

app.use(createPinia().use(piniaPluginPersistedstate))
app.use(router)
// app.use(Button)
app.mount('#app')
